#!/usr/bin/python3
import exifread
import os
import sys

if __name__ == '__main__':
    for file in sys.argv[1:]:
        if os.path.exists(file):
            with open(file,'rb') as f:
                tags=exifread.process_file(f)
                for k,v in tags.items():
                    if k == 'JPEGThumbnail':
                        continue
                    print("%s = %s" %(k,v))
